#!/usr/bin/node

const http = require('http');
const server = http.createServer(),
log = console.log,
qs =require('querystring');
http.createServer((req,res)=>{
log(req.url);
let addr = url.parse(req.url);
log(addr.pathname);
log(addr.query);

log(addr.pathname.split('/'));

log('hehe');

res.end('ok');
});

server.listen(8080);
